#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int row = 0, number = 0;
	scanf("%d", &number);
	for (row = 1; row<= number; row++)
	{
		int column = 0;
		for (column = 1; column <= row; column++)
		{
			printf("%d*%d=%-3d", row, column, row * column);
		}
		printf("\n");
	}
	return 0;
}